package com.nt.train.service.impl;

import com.nt.train.config.properties.AliyunOssProperties;
import com.nt.train.service.OssService;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.Map;

/**
 * @author hlf
 * @version 1.0
 * @date 2022/8/4 13:49
 */
public class AliyunOssServiceImpl implements OssService {

    private  final AliyunOssProperties aliyunOssProperties ;

    public AliyunOssServiceImpl(AliyunOssProperties aliyunOssProperties){
        this.aliyunOssProperties = aliyunOssProperties ;
    }

    @Override
    public String upload(MultipartFile file) {
        System.out.println("上传文件处理");
        return null;
    }

    @Override
    public Map<String, Object> readProperties() {
        Map<String, Object>  readMap  = new HashMap<>();
        readMap.put("aliyunOssData",aliyunOssProperties);
        return readMap;
    }
}
